/**
 * 作者:李杰
 * email: maillijie@gmail.com
 */
package com.javainfo.simpledto;

import java.util.Date;
import java.util.List;

import org.hibernate.annotations.Type;

public class ArticleDto {

	/**
	 * ID
	 */
	private Integer id;

	/** 文章标题 */
	private String title;

	/** 文章内容 */
	@Type(type="text")
	private String content;
	
	/** 创建时间 */
	private Date createTime;
	
	/** 更新时间 */
	private Date updateTime;
	
	/** 点击数 */
	private Integer clickNo;

	/**
	 * 回复数量
	 */
	private int postNo;
	
	/**
	 * 作者名
	 */
	private String userName;
	
	/**
	 * 作者ID
	 */
	private Integer userId;
	
	/**
	 * 最新的回复标题
	 */
	private String lastPostName;
	
	/**
	 * 最新的回复用户的用户名
	 */
	private String lastPostUserName;
	
	/**
	 * 最新回复的时间
	 */
	private Date lastPostDate;
	
	/**
	 * 分类ID
	 */
	private String categoryId;
	
	/**
	 * 子分类ID
	 */
	private String subCategoryId;
	
	/**
	 * 回复列表
	 */
	private List<SubArticleDto> subArticleList;
	
	/**
	 * 分类
	 */
	private ArticleCategoryDto articleCategory;
	
	/**
	 * 子分类
	 */
	private ArticleCategoryDto subArticleCategory;
	
	/**
	 * 附件列表
	 */
	private List<AttachmentsDto> attachmentsList;
	
	
	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}

	/**
	 * @param content the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * @return the createTime
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * @param createTime the createTime to set
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * @return the updateTime
	 */
	public Date getUpdateTime() {
		return updateTime;
	}

	/**
	 * @param updateTime the updateTime to set
	 */
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	/**
	 * @return the clickNo
	 */
	public Integer getClickNo() {
		return clickNo;
	}

	/**
	 * @param clickNo the clickNo to set
	 */
	public void setClickNo(Integer clickNo) {
		this.clickNo = clickNo;
	}

	/**
	 * @return the postNo
	 */
	public int getPostNo() {
		return postNo;
	}

	/**
	 * @param postNo the postNo to set
	 */
	public void setPostNo(int postNo) {
		this.postNo = postNo;
	}

	/**
	 * @return the lastPostName
	 */
	public String getLastPostName() {
		return lastPostName;
	}

	/**
	 * @param lastPostName the lastPostName to set
	 */
	public void setLastPostName(String lastPostName) {
		this.lastPostName = lastPostName;
	}

	/**
	 * @return the lastPostUserName
	 */
	public String getLastPostUserName() {
		return lastPostUserName;
	}

	/**
	 * @param lastPostUserName the lastPostUserName to set
	 */
	public void setLastPostUserName(String lastPostUserName) {
		this.lastPostUserName = lastPostUserName;
	}

	/**
	 * @return the userName
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * @param userName the userName to set
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * @return the lastPostDate
	 */
	public Date getLastPostDate() {
		return lastPostDate;
	}

	/**
	 * @param lastPostDate the lastPostDate to set
	 */
	public void setLastPostDate(Date lastPostDate) {
		this.lastPostDate = lastPostDate;
	}

	/**
	 * @return the categoryId
	 */
	public String getCategoryId() {
		return categoryId;
	}

	/**
	 * @param categoryId the categoryId to set
	 */
	public void setCategoryId(String categoryId) {
		this.categoryId = categoryId;
	}

	/**
	 * @return the subCategoryId
	 */
	public String getSubCategoryId() {
		return subCategoryId;
	}

	/**
	 * @param subCategoryId the subCategoryId to set
	 */
	public void setSubCategoryId(String subCategoryId) {
		this.subCategoryId = subCategoryId;
	}

	/**
	 * @return the subArticleList
	 */
	public List<SubArticleDto> getSubArticleList() {
		return subArticleList;
	}

	/**
	 * @param subArticleList the subArticleList to set
	 */
	public void setSubArticleList(List<SubArticleDto> subArticleList) {
		this.subArticleList = subArticleList;
	}

	/**
	 * @return the articleCategory
	 */
	public ArticleCategoryDto getArticleCategory() {
		return articleCategory;
	}

	/**
	 * @param articleCategory the articleCategory to set
	 */
	public void setArticleCategory(ArticleCategoryDto articleCategory) {
		this.articleCategory = articleCategory;
	}

	/**
	 * @return the subArticleCategory
	 */
	public ArticleCategoryDto getSubArticleCategory() {
		return subArticleCategory;
	}

	/**
	 * @param subArticleCategory the subArticleCategory to set
	 */
	public void setSubArticleCategory(ArticleCategoryDto subArticleCategory) {
		this.subArticleCategory = subArticleCategory;
	}

	/**
	 * @return the attachmentsList
	 */
	public List<AttachmentsDto> getAttachmentsList() {
		return attachmentsList;
	}

	/**
	 * @param attachmentsList the attachmentsList to set
	 */
	public void setAttachmentsList(List<AttachmentsDto> attachmentsList) {
		this.attachmentsList = attachmentsList;
	}

	/**
	 * @return the userId
	 */
	public Integer getUserId() {
		return userId;
	}

	/**
	 * @param userId the userId to set
	 */
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	
	
}
